package com.yhtx.easy.result;

/**
 * 定义失败类型
 * @Author ZhuoXiaoYa
 * @Date 2025/5/15
 **/
public class ErrorResponse<T> extends Response<T> {

    public ErrorResponse(String code, String message) {
        super(Boolean.FALSE, code, message, null);
    }

    public ErrorResponse(String code, String message, T data) {
        super(Boolean.FALSE, code, message, data);
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ErrorResponse;
    }

}

